package thread;

public class ThreadDemo14 {
    public static int count = 0;
    public static void main(String[] args) throws InterruptedException {
        Thread t = new Thread(() -> {
           for(int i = 0; i < 100_0000; i++){
               count++;
           }
        });
        t.start();
        t.join();
        System.out.println("count的值为:" + count);
    }
}
